<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // prompt 弹出一个输入框，可以让用户输入内容，输入的内容作为prompt函数的返回值 类型字符串

        // var age = parseInt(prompt('请输入您的年龄:'));
        var age = +prompt('请输入年龄');
        console.log(age, typeof age);
    </script>
</body>

</html>